package com.xxmw.transaction.mapper.app;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxmw.transaction.model.app.UserBrick;
import com.xxmw.transaction.vo.UserBrickDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author luowenliang
 * @since 2020/5/18 11:55
 */
public interface UserBrickMapper extends BaseMapper<UserBrick> {

    List<UserBrickDetailVo> findByUserIdAndSymbol(@Param("userId") Long userId, @Param("symbol") String symbol);

    void updataStatusToCloseBySymbol(@Param("userId") Long userId, @Param("symbol") String symbol);

    List<UserBrick> findByBrickId(@Param("brickId") Integer brickId);

    void closeUserBrickByVip();
}
